package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperOrderRecDetail implements Serializable {
    private Integer orderId;

    /**
     * 货物id
     */
    private Integer id;

    /**
     * 仓库ID
     */
    private Integer stockId;

    /**
     * 回收数量  品类单位是公斤时，按g存的；品类单位是个时，按个数存
     */
    private Integer rNum;

    /**
     * 实验数量  品类单位是公斤时，按g存的；品类单位是个时，按个数存
     */
    private Integer yNum;

    /**
     * 单价  单位为分
     */
    private Integer price;

    /**
     * 实付金额
     */
    private Double fPrice;

    /**
     * 实际金额
     */
    private Double yPrice;

    /**
     * 税率
     */
    private Double rate;

    private static final long serialVersionUID = 1L;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 货物id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 货物id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 仓库ID
     */
    public Integer getStockId() {
        return stockId;
    }

    /**
     * 仓库ID
     */
    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    /**
     * 回收数量  品类单位是公斤时，按g存的；品类单位是个时，按个数存
     */
    public Integer getrNum() {
        return rNum;
    }

    /**
     * 回收数量  品类单位是公斤时，按g存的；品类单位是个时，按个数存
     */
    public void setrNum(Integer rNum) {
        this.rNum = rNum;
    }

    /**
     * 实验数量  品类单位是公斤时，按g存的；品类单位是个时，按个数存
     */
    public Integer getyNum() {
        return yNum;
    }

    /**
     * 实验数量  品类单位是公斤时，按g存的；品类单位是个时，按个数存
     */
    public void setyNum(Integer yNum) {
        this.yNum = yNum;
    }

    /**
     * 单价  单位为分
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 单价  单位为分
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     * 实付金额
     */
    public Double getfPrice() {
        return fPrice;
    }

    /**
     * 实付金额
     */
    public void setfPrice(Double fPrice) {
        this.fPrice = fPrice;
    }

    /**
     * 实际金额
     */
    public Double getyPrice() {
        return yPrice;
    }

    /**
     * 实际金额
     */
    public void setyPrice(Double yPrice) {
        this.yPrice = yPrice;
    }

    /**
     * 税率
     */
    public Double getRate() {
        return rate;
    }

    /**
     * 税率
     */
    public void setRate(Double rate) {
        this.rate = rate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", id=").append(id);
        sb.append(", stockId=").append(stockId);
        sb.append(", rNum=").append(rNum);
        sb.append(", yNum=").append(yNum);
        sb.append(", price=").append(price);
        sb.append(", fPrice=").append(fPrice);
        sb.append(", yPrice=").append(yPrice);
        sb.append(", rate=").append(rate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperOrderRecDetail other = (SuperOrderRecDetail) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStockId() == null ? other.getStockId() == null : this.getStockId().equals(other.getStockId()))
            && (this.getrNum() == null ? other.getrNum() == null : this.getrNum().equals(other.getrNum()))
            && (this.getyNum() == null ? other.getyNum() == null : this.getyNum().equals(other.getyNum()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getfPrice() == null ? other.getfPrice() == null : this.getfPrice().equals(other.getfPrice()))
            && (this.getyPrice() == null ? other.getyPrice() == null : this.getyPrice().equals(other.getyPrice()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStockId() == null) ? 0 : getStockId().hashCode());
        result = prime * result + ((getrNum() == null) ? 0 : getrNum().hashCode());
        result = prime * result + ((getyNum() == null) ? 0 : getyNum().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getfPrice() == null) ? 0 : getfPrice().hashCode());
        result = prime * result + ((getyPrice() == null) ? 0 : getyPrice().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        return result;
    }
}